package mutsumimod.cards.custom;

import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import mutsumimod.cards.BaseCard;
import mutsumimod.character.Mutsumi;
import mutsumimod.powers.BreakPower;
import mutsumimod.util.CardStats;

public class Boomerang extends BaseCard {
    public static final String ID = makeID(Boomerang.class.getSimpleName());
    public static final CardStats info = new CardStats(
            Mutsumi.Meta.CARD_COLOR,
            CardType.SKILL,
            CardRarity.COMMON,
            CardTarget.ENEMY,
            1
    );

    public Boomerang() {
        super(ID, info);
        setAttr(0,0,14);
        setAttrUpg(0,0,4);
        setMagicNumberTwo(4,0);
    }

    @Override
    public void use(AbstractPlayer p, AbstractMonster m) {
        applyPowerSelf(new BreakPower(p,magicNumberTwo),magicNumberTwo);
        applyPowerMonster(new BreakPower(m,magicNumber),m);
    }

    @Override
    public AbstractCard makeCopy() { //Optional
        return new Boomerang();
    }
}
